package StudyCode.summary.csv;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class EscapesQuotesString {
	public static void main(String[] argv) throws Exception {
		String value = "www.tah1986.com\"";
		System.out.println(escapeQuotesForCsv(value));
	}

	private static String escapeQuotesForCsv(String value) {
		if (value.contains("\"")) {
			return value.replace("\"", "\"\"");
		} else {
			return value;
		}
	}
}
